﻿using MiniFox.Platform.Models;
using MiniFox.Platform.Resources;
using MiniFox.Resources;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Security.AccessControl;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Platform.OAuth2.Models
{
    /// <summary>
    /// 
    /// </summary>
    [JsonObject]
    public class PinCodeSignIn
    {
        /// <summary>
        /// 验证码
        /// </summary>
        [Display(Name = "LAB_PinCode", Prompt = "LAB_PinCode", ResourceType = typeof(ResMessage))]
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        [JsonProperty("pinCode")]
        public string PinCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "LAB_Cellphone", Prompt = "LAB_Cellphone", ResourceType = typeof(ResMessage))]
        [SecureString(SecureStringType.Cellphone, ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonUnmatchRegex")]
        [JsonProperty("cellphone")]
        public string Cellphone { get; set; }
    }
}
